package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: 马宇航
 * @Todo: 测试用的controller判断拦截器是否成功
 * @DateTime: 22/02/11/0011 上午 10:35
 * @Component: 成都蜗牛学苑
 **/
@Controller
@RequestMapping("/test")
public class TestInterceptor {
    @RequestMapping("/testOne")
    public String testOne(Model model){
        System.out.println("TestInterceptor.testOne"+"controller方法正在执行！");
        model.addAttribute("msg","欢迎来到，蜗牛学苑");
        return "success";
    }
}
